package com.ehome.poct.core;

import com.baomidou.mybatisplus.core.toolkit.Sequence;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({"com.ehome.poct.core.dao.**.mybatis.mapper"})
@EnableFeignClients(basePackages = {"com.ehome.poct.*","com.ehome.clinic.*"})
public class CoreServiceApplication {

    public static void main(String[] args) {
        log.info("### Spring boot Application start ...");
        SpringApplication.run(CoreServiceApplication.class,args);
        log.info("### Spring boot Application ok ...");
    }

    @Bean
    public Sequence sequence() {
        return new Sequence();
    }
}
